package com.ctshk.rpc.order.season.req;

import com.ctshk.common.model.PageReq;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 订单中心 搜索订单
 *
 * @author 杨林
 * @version 1.0
 * @date 2021/3/29 9:49
 */
@Data
@ApiModel(value = "SearchSeasonOrderReq", description = "订单中心-套票订单分页搜索req")
public class SearchSeasonOrderReq extends PageReq implements Serializable {


    @ApiModelProperty(value = "订单id")
    private Long id;
    @ApiModelProperty(value = "销售单号 可模糊匹配")
    private String orderNumber;

    @ApiModelProperty(value = "产品名称 可模糊匹配")
    private String productName;

    @ApiModelProperty(value = "产品类型  全部 1:固定  2：自由行")
//    @NotNull(message = "产品类型不能为空")
    //@Pattern(regexp = "^[12]$", message = "产品类型有误")
    private String productType;

    @ApiModelProperty(value = "套票类型id")
    // @Pattern(regexp = "^[12345]$", message = "产品类型有误")
    private String seasonTypeId;

    @ApiModelProperty(value = "预订状态   0 全部  1待约定  2 预订成功 3 预订失败")
//    @NotNull(message = "预订状态不能为空")
    // @Pattern(regexp = "^[123]$", message = "预订状态有误")
    private String scheduledStatus;


    @ApiModelProperty(value = "付款状态     1待付款  2 已付款 3 已取消")
//    @NotNull(message = "付款状态不能为空")
    //@Pattern(regexp = "^[123]$", message = "付款状态有误")
    private String paymentStatus;

    @ApiModelProperty(value = "订单 创建开始时间")
    private LocalDateTime createStartTime;

    @ApiModelProperty(value = "订单 创建 结束时间")
    private LocalDateTime createEndTime;


    @ApiModelProperty(value = "联络人名字 可模糊匹配")
    private String contactName;

    @ApiModelProperty(value = "来源")
    private String source;

    @ApiModelProperty(value = "销售人员id")
    private Long salesmanId;


}